//
//  ZpBaseNavigationController.m
//  WeiBo_OC
//
//  Created by MacBook Pro on 16/5/24.
//  Copyright © 2016年 MacBook Pro. All rights reserved.
//

#import "ZpBaseNavigationController.h"
#import "ZpBarButtonItem.h"
@interface ZpBaseNavigationController ()<UIGestureRecognizerDelegate>

@end

@implementation ZpBaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.interactivePopGestureRecognizer.delegate = self;
}

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
  
    return self.childViewControllers.count > 1;
}

+ (void)initialize{

    UINavigationBar *bar = [UINavigationBar appearance];
    bar.backgroundColor = [UIColor darkGrayColor];
//    [bar setTintColor:[UIColor darkGrayColor]];
    
    [bar setTitleTextAttributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15]}];
}


- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{

    [super pushViewController:viewController animated:animated];
}



@end
